package br.com.sistema.smallAgro.modelo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import br.com.sistema.smallAgro.base.IEntidade;

@Entity
@Table(name = "TB_VENDAS")
public class Venda implements IEntidade {
	private static final long serialVersionUID = 538838107510793472L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "CO_SEQ_VENDAS", nullable = false)
	private Long codigo;

	@Column(name = "DS_DESCRICAO", length = 180, nullable = false)
	private String descricao;

	@Column(name = "DT_VENDA")
	@Temporal(TemporalType.DATE)
	private java.util.Date data;

	@Column(name = "NU_TOTAL_VENDA", nullable = false)
	private double valorTotal;

	public Long getCodigo() {
		return codigo;
	}

	public void setCodigo(Long codigo) {
		this.codigo = codigo;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public Date getData() {
		return data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	public double getValorTotal() {
		return valorTotal;
	}

	public void setValorTotal(double valorTotal) {
		this.valorTotal = valorTotal;
	}

	@Override
	public Long getId() {
		return null;
	}

}
